package com.fs.common.base.bean.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class BaseDTO {
    @Schema(description = "id")
    private String id;

    @Schema(description = "租户id", hidden = true)
    private String tenantId;

    @Schema(description = "创建用户", hidden = true)
    private String createUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新用户", hidden = true)
    private String updateUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "是否删除", hidden = true)
    private Boolean deleted;
}
